package com.zzyl.nursing.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class NursingTaskDetailVo {

    private Integer age;
    private String bedNumber;
    private String cancelReason;
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private Long elderId;
    private String elderName;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime estimatedServerTime; // 这里原表格类型是string(date-time)，可以先用String接收，后续可转换为LocalDateTime
    private Long id;
    private String mark;
    private String nursingId;
    private String nursingLevelName;
    private List<String> nursingName; // 原表格是array，这里用List<String>接收
    private Long projectId;
    private String projectName;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime realServerTime; // 执行之后展示，原表格类型是string(date-time)，可以先用String接收
    private String remark;
    private String sex;
    private Integer status;
    private String taskImage; // 执行之后展示
    private String updateBy;
    private LocalDateTime updateTime;
    private String updater; // 执行或取消之后展示
}
